package guestbook;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.users.User;

import java.util.Calendar;
import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Message {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private String msg_date;
	
	@Persistent
	private int msg_ID;
	
	@Persistent
	private String user_name;
	
	@Persistent
	private String msg;
	
	
	public Message(String d,int id,String u, String m)
	{
		msg_date = d;msg_ID = id;msg = m;user_name = u;
	}
	
	public String get_msg()
	{
		return msg;
	}
	
	public String get_c()
	{
		return msg_date;
	}
	
	public String get_username()
	{
		return user_name;
	}
	
	public void set_c(String c)
	{
		msg_date = c;
	}
}
